package com.duixiang.lei.huanzhe;
/*
患者  Patient   姓名  性别  年龄 出生年月    病情(illness)
 */
public class Patient {
    private String name;
    private String gender;
    private int age;

    @Override
    public String toString() {
        return "Patient{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                '}';
    }

    public Patient() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Patient(String name, String gender, int age) {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public void year(int year, int month){
        System.out.println(year+"."+month);
    }
    public void illness(String described){
        System.out.println(described);
    }

}
